<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h3 align="center">注册页面</h3>
		<div align="center">
			<form onsubmit="return login()">


				<table border="1" cellspacing="0">

					<tr>
						<td width="80px">登录：</td>
						<td width="200px"><input type="text" name="" id="username" placeholder="请输入账号" /></td>
					</tr>
					<tr>
						<td>注册：</td>
						<td><input type="password" name="" id="" placeholder="请输入密码" /></td>
					</tr>
					<tr>
						<td>性别：</td>
						<td>
							男<input type="radio" value="" />
							女<input type="radio" value="" />
						</td>
					</tr>
					<tr>
						<td>学历</td>
						<td>
							本科<input type="radio" value="" />
							专科<input type="radio" value="" />
						</td>
					</tr>
					<tr>
						<td>自我介绍</td>
						<td><textarea rows="7" cols="" id="intro"></textarea></td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<input type="submit" id="" value="注册" />
						</td>
					</tr>
				</table>
			</form>
		</div>
		<script type="text/javascript">
			// 验证账号是否真确	
			function login() {
				var user = document.getElementById("username").value; //获取用户名
				if (user != "admin") {
					alert("账号错误！请重新输入！")
					return false;
				}
				alert("登录成功！")
				show();
				return true;
			}

			function show() {
				var introduct = document.getElementById("intro").value; //获取自我介绍的内容
				alert("自我介绍：" + introduct);
			}
		</script>
	</body>
</html>
